<!DOCTYPE html>
<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{layout}">

<head>
    <title th:text="#{cas.login.pagetitle}">CAS Login View</title>
    <link href="../../static/css/cas.css" rel="stylesheet" th:remove="tag"/>
</head>

<body class="login mdc-typography">
<div layout:fragment="content" class="d-flex justify-content-center">
   <div class="d-flex justify-content-center flex-md-row flex-column mdc-card mdc-card-content card flex-grow-1"
         th:with="loginFormEnabled=${#cas.isTrue(#cas.theme('cas.login-form.enabled'))},
                  loginFormViewable=${#cas.isLoginFormViewable(#vars)}">

        <section id="loginSidePanel"
                 th:if="${loginFormViewable and loginFormEnabled and #cas.isTrue(#cas.theme('cas.login-side-panel.enabled'))}"
                 class="login-section d-xs-none d-md-block card-body">
            <div th:replace="~{fragments/loginSidePanel :: loginSidePanel}">
                <a href="fragments/loginSidePanel.html">loginSidePanel</a>
            </div>
        </section>

        <section id="loginForm"
                 th:if="${loginFormViewable and loginFormEnabled}"
                 class="login-section login-form card-body">
            <div th:replace="~{fragments/loginform :: loginform}">
                <a href="fragments/loginform.html">Login Form goes here</a>
            </div>
        </section>
        <section id="loginProviders" class="login-section login-providers card-body"
                th:if="${(#bools.isFalse(delegatedAuthenticationDynamicProviderSelection)
                       && #bools.isFalse(delegatedAuthenticationDisabled))
                       && (#cas.isTrue(delegatedAuthenticationProviderConfigurations)
                       || #cas.isTrue(wsfedUrls))}">
            <div th:replace="~{fragments/loginProviders :: loginProviders}">
                <a href="fragments/loginProviders.html">loginProviders</a>
            </div>
        </section>
        <section id="qrlogin" class="login-section login-qr d-xs-none d-md-block card-body" th:if="${qrAuthenticationEnabled}">
            <div th:replace="~{fragments/qrAuthentication :: qrAuthentication}">
                <a href="fragments/qrAuthentication.html">qrAuthentication</a>
            </div>
        </section>
    </div>
</div>
</body>

</html>
